# -*- coding: utf-8 -*-

from django.shortcuts import render
from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.http import JsonResponse
from django.contrib.auth.decorators import login_required

#queryset对象转换为json对象
from django.core import serializers
import json

def index(req):
    return render(req, 'layout/main.html')

def dashboard(req):
    return render(req, 'dashboard.html')

def process(req):
    return render(req, 'process.html')

def registerForm(req):
    return render(req, 'proc-register.html')

def minion(req):
    return render(req, 'minion.html')

def minionList(req):
    return render(req, 'minion-list.html')

def rmcmd(req):
    return render(req, 'rmcmd.html')

def job(req):
    return render(req, 'job.html')

def jobDetail(req):
    return render(req, 'job-detail.html')

def sysproc(req):
    return render(req, 'sysproc.html')

def project(req):
    return render(req, 'project.html')